package com.ytjj.qmyx.mall.service.impl;

import com.ytjj.qmyx.mall.mapper.ImMessageInfoMapper;
import com.ytjj.qmyx.mall.model.vo.ImMessageInfoVO;
import com.ytjj.qmyx.mall.service.ImMessageInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class ImMessageInfoServiceImpl implements ImMessageInfoService {
    @Resource
    private ImMessageInfoMapper imMessageInfoMapper;

    /**
     * 查询用户最新的客服消息记录
     * @return
     */
    @Override
    public ImMessageInfoVO queryUsersNewestMessage(String tel) {
        return imMessageInfoMapper.newestMessage(tel);
    }
}
